package com.chen.facemanager.dao;

import com.chen.facemanager.bean.Apk;
import com.chen.facemanager.bean.Info;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ApkDao extends JpaRepository<Apk,Integer> {
    @Query("SELECT new Apk (a.id, MAX(a.version) as version, a.url) FROM Apk a ")
    Apk findVersion();
}
